﻿package com.webbei.friendcenter.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.webbei.friendcenter.service.MyFriendCenter;
import com.webbei.pojo.CommentCustomShow;
import com.webbei.pojo.Commission;
import com.webbei.pojo.Customcomment;
import com.webbei.pojo.Customer;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Display;
import com.webbei.pojo.LoveCar;
import com.webbei.pojo.Messages;
import com.webbei.pojo.Orders;
import com.webbei.pojo.Userhot;

public interface MyFriendCenterDao {
		////锟斤拷莸锟角帮拷没锟斤拷锟斤拷锟斤拷郑锟斤拷业锟斤拷锟斤拷泻锟斤拷训锟斤拷锟斤拷锟�
	public List getAllFriendsNameByOwnerName(String ownName);
	public int getMyFriendsCount(String string);
	public Customer getCustomerByUserName(String uname);
	public Userhot getUserhotByUserName(String uname);
	public int getCustomerIDByUserName(String uname);
	public List<LoveCar> getLoveCarsbyUserID(int user_id);
	public List<Userhot> getAllFriendsByUserName(String uname);
	public List<Orders> getAllcustomsByUserName(String uname);
	public List<Customcomment> getAllCommentByUsername(String uname);
	public List<Customcomment> getALLCommentISShareByUsername(String uname);
	public int InsertNewComment(Long customid, String string,
			String textContent, Date currentDate,int sourse);
	public List getAllFriendsChangeByOwnName(String string);
	public List<Display> getAllFriendsChangeShareByOwnName(String uname);
	public int insertMessageEachOther(Messages message);
	public List<Messages> getALLMessagesByUserName(String uname);
	public List<Orders> getAllcustomsShareByUserName(String uname);
	public int addNewFriendByOwnUser(String ownUser, String addUser);
	public List<Orders> getCostMoneyMessageByUserName(String uname);
	public List<CommentCustomShow> getCommentCustomShow(String uname);
	public int insertNewReport(String reportName, String beReportName,
			String reprotContent, Date reportTime, int customId);
	public int UnameIsSessionNameFriend(String sessionInName, String uname);
	public int checkNameByUname(String uname);
	public List<Commission> getAllCommissionByUserName(String username);
	public boolean IsExistTheUserName(String uname);
	public List<Orders> getAllMyPartInShareByUserName(String uname);
	public List<Customcomment> getAllCommentPartInShareByUserName(
			String uname);
	public String getCustomUploadFileContentInCustoms(int customId);
	public int CustomUploadFileUpdateByCustomId(int customId,
			String filesFileName);
	public Customcomment getTheLastCommentByCustomId(Map m);
	public int getComemntCountByCustomId(Map m);
	public List<Userhot> getAllFriendsByUserNameOrderBycarBrind(
			String uname, String carBrind);
	public List<Customs> getAllNoPayCanShareCustomByUserName(String uname);
	public List<Customcomment> getALLCommentISNoPayCanShareByUsername(
			String uname);
	public String getCustomUploadFileContent(int customId);
	public int UploadFileContentInCustomsByCustomId(int customId,
			String string);
	public List<Customs> getAllMyPartInShareNoPayInCustomByUserName(
			String uname);
	public List<Customcomment> getTheCommentPartInShareNoPayByUserName(
			String uname);
	public List<Customs> getAllNotBuycustomsByUserName(String uname);
	public List<Customcomment> getAllNotBuyCustomCommentByUserName(
			String uname);
	public List<Customcomment> getAllCustomShareCommentByUserName(
			String uname);
	public List<Display> getAllFriendsChangeCustomByOwnName(String uname);
	public List<Display> getAllFriendsChangeCustomShareByOwnName(
			String uname);
	public List<Commission> getAllCommissionFromCustomByUserName(
			String uname);
	public List<Display> getAllPartShareInOrderByUserName(String uname);
	public List<Display> getAllPartShareInCustomByUserName(String uname);
	public List<CommentCustomShow> getCommentOrderShow(String uname);
	public int NewCustomers(String hpassword,
			String dmail, String truename,
			String phonenumber, String touImage);
	public int newDesigners(String dmail, String identitycard,
			String newFileName);
	public int updateCustomersByEmail(Map<String, Object> map);
}
